﻿using System;
using System.Collections.Generic;
using System.Web.Http;
using Smatime.Web.DAO;
using Smatime.Web.Models;

namespace Smatime.Web.Controllers
{
    public class StaffTimeEditController : ApiController
    {
        // GET api/stafftimeedit
        public IEnumerable<string> Get()
        {
            return new[] {"value1", "value2"};
        }

        // GET api/stafftimeedit/5
        [Route("api/stafftimeedit/{id}/date/{stampdate}")]
        public StaffTimeEdit Get(int id, DateTime stampdate)
        {
            return new StaffTimeEditRepository().GetListById(id, stampdate);
        }

        // POST api/stafftimeedit
        public void Post([FromBody] string value)
        {
        }

        // PUT api/stafftimeedit/5
        public void Put(int id, [FromBody] string value)
        {
        }

        // DELETE api/stafftimeedit/5
        public void Delete(int id)
        {
        }
    }
}